package com.wayin.lift.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wayin.lift.dao.MigrantsDao;
import com.wayin.lift.entity.MigrantsEntity;
import com.wayin.lift.service.MigrantsService;

import java.util.List;


@Service("migrantsService")
public class MigrantsServiceImpl extends ServiceImpl<MigrantsDao, MigrantsEntity> implements MigrantsService {

    @Autowired
    private MigrantsDao migrantsDao;

    @Override
    public List<MigrantsEntity> findAllMigrants() {
        return migrantsDao.selectMigrants();
    }

    @Override
    public List<MigrantsEntity> findThisDay() {
        return migrantsDao.selectThisDay();
    }

}